package xin.ryven.workflow.service;

import org.camunda.bpm.engine.repository.ProcessDefinition;
import java.util.List;

public interface ProcessDefinitionService {
    List<ProcessDefinition> listProcessDefinitions();
    String getProcessDefinitionXml(String processDefinitionId);
    void deployProcessDefinition(String name, String xml);
    void deleteProcessDefinition(String processDefinitionId);
    ProcessDefinition getProcessDefinition(String processDefinitionId);
    ProcessDefinition getLatestProcessDefinitionByKey(String key);
} 